﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CommonTagTime;
using CommonTagTime.ModelObject;
using System.IO;

public partial class UserControl_Video : System.Web.UI.UserControl
{
    public Video objVideo = new Video();
    public string src = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (objVideo.VideoFile != string.Empty)
        {
            src = clsVideo.GetVideoResource(objVideo.VideoFile, 800, 480, 1, 0, "vdeo_" + objVideo.VideoID.ToString());
           
        }
      //VideoID
       
    }
    public string GetImageUrl()
    {
        string imagePage = clsImage.ConvertLinkVideoToImage(objVideo.VideoFile);
        if (imagePage != "")
            return imagePage;
        else
            return clsConfigData.DEFAULT_UPLOAD_NEWEVENTS_NOIMAGE; ;
    }
}